from numpy import *
from NetworkTools import Network
from SoundTools import *
from scipy.io import wavfile

set_printoptions(precision=16)

numInputs = numOutputs = 2
dims = array((numInputs, 2, numOutputs))
network = Network(dims, 1)
network.setParams(array(range(1, 13)))

wav = open('1.wav', 'r')
sound = Sound(wav)

X = array([[.1, .2], [.3, .4]])
Y = array([[0, 1], [1, 0]])
lam = 0
network.train(X, Y, lam)